package metro.cards;

import metro.cards.types.CardSpecialType;

import java.util.Calendar;

public class StudentCard extends DurationCard {
    protected StudentCard(Calendar creationDate,Calendar expiredDate){
        super(creationDate,expiredDate);
        specialType= CardSpecialType.STUDENT;
    }

    public static StudentCard createStudentCard(Calendar creationDate){
        return new StudentCard(creationDate,nextMonthLastDay());
    }
}
